package com.dengyafei.utils;

import java.util.Random;

/**
 * @author 邓亚非
 */
public class RecommendUtil {

    /**
     * 生成一个1-5的随机分数
     *
     * @return
     */
    public static Integer getPreferVal() {
        Random random = new Random();
        int preferVal = 0;
        for (int i = 0; i < 10; i++) {
            preferVal = random.nextInt(5) + 1;
        }
        return preferVal;
    }
}
